﻿using System.ComponentModel;

namespace Scheduler.Model
{
    public enum ResultStatus
    {
        /// <summary>
        /// 请求成功
        /// </summary>
        [Description("请求成功")]
        Success = 200,
        /// <summary>
        /// 请求失败
        /// </summary>
        [Description("请求失败")]
        Fail = 400,
        /// <summary>
        /// 无权访问该接口
        /// </summary>
        [Description("无权访问该接口")]
        NotAuthorizedToAccessInterface = 401,
        /// <summary>
        /// 访问权限等级不够
        /// </summary>
        [Description("访问权限等级不够")]
        InsufficientAccessPermissionLevel = 403,
        /// <summary>
        /// 资源不存在
        /// </summary>
        [Description("资源不存在")]
        ResourceDoesNotExist = 404,
        /// <summary>
        /// 请求异常
        /// </summary>
        [Description("请求异常")]
        Error = 500
    }
}
